<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?><?php echo Yii::app()->user->getPresentacionRol();?>" type="text/css">
		<meta name="viewport" content="width-device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0">
		<script> 
			function abrir() { 
			open('asignacion.html','1','top=300,left=300,width=500,height=400') ; 
			} 
		</script> 
	</head>

	<body>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'misdatos-form',	
)); 
?>
		<div class="contenedor">
			<form method="post" action="">
				<title>Mis Datos</title>

				<table id="iframe">
					<caption id="titulotabla">
						<h1>Mis datos</h1>
	  				</caption>
					<tr>
						<td>Nombre</td>
							<td>
							<div class="row">
							<?php echo $form->textField($model,'nombre'); ?>
		                    <?php echo $form->error($model,'nombre'); ?>
							</div>
							</td>
					</tr>
					<tr>
						<td>Apellido</td>
							<td>
							<div class="row">
							<?php echo $form->textField($model,'apellido'); ?>
		                    <?php echo $form->error($model,'apellido'); ?>
							</div>
							</td>
					</tr>
					<tr>
						<td>DNI</td>
							<td>
							<div class="row">
							<?php echo $form->textField($model,'dni'); ?>
		                    <?php echo $form->error($model,'dni'); ?>
							</div>
							</td>
					</tr>
					<tr>
						<td>Mail</td>
							<td>
							<div class="row">
							<?php echo $form->textField($model,'mail'); ?>
		                    <?php echo $form->error($model,'mail'); ?>
							</div>
							</td>
					</tr>
					<tr>
						<td>Rol</td>
							<td>
							<div class="row">
							<?php echo $form->dropDownList($model, 'rol', array('admin' => 'Administrativo', 'empleado' => 'empleado')); ?>
		                    <?php echo $form->error($model,'rol'); ?>
							</div>
							</td>
					</tr>

					<tr>
						<td>&nbsp;</td>
					</tr>
					<td colspan=2 align="right">
							<div class="row buttons">
								<?php echo CHtml::submitButton('Modificar Datos',array('name'=>'modificar')); ?>
							</div>
						</td>
					<tr>
						<td>
							<input name="button" type="button" onclick="window.close();" value="Cerrar" /> 
						</td>
						
					</tr>
				</table>
			</form>
<?php $this->endWidget(); ?>
<?php $this->renderPartial('//mensaje/_mensaje'); ?>
        </div>
		</div>
	</body>
</html>